<?php
class FrontendAction extends BaseAction
{
    public function _initialize()
	{
	    //热门
	    $hot_list = D('Item')->limit(0,5)->order('bought DESC')->findAll();
	    //推荐
	    $recommend_list = D('Item')->limit(0,5)->order('recommend DESC, sort_order')->findAll();
	    $this->assign('hot_list', $hot_list);
	    $this->assign('recommend_list', $recommend_list);
	}
}
?>